/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ddbserver.common;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Roar
 */
public class GDDNode {

    private boolean isLeaf;
    private Site location;
    private List<String> predicate;
    private List<GDDNode> sons;
    private String fragmentType;

    public GDDNode() {
        this.predicate = new ArrayList<String>();
        this.sons = new ArrayList<GDDNode>();
    }

    public boolean isIsLeaf() {
        return isLeaf;
    }

    public void setIsLeaf(boolean isLeaf) {
        this.isLeaf = isLeaf;
    }

    public Site getLocation() {
        return location;
    }

    public void setLocation(Site location) {
        this.location = location;
    }

    public List<String> getPredicate() {
        return predicate;
    }

    public void setPredicate(List<String> predicate) {
        this.predicate = predicate;
    }

    public List<GDDNode> getSons() {
        return sons;
    }

    public void setSons(List<GDDNode> sons) {
        this.sons = sons;
    }

    public String getFragmentType() {
        return fragmentType;
    }

    public void setFragmentType(String type) {
        this.fragmentType = type;
    }
}
